import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.scss'
// import RouterView from './router/index.ts'
import text from "@/pages/text"
import LayoutCommpont from "@/layout/index"
import { BrowserRouter,HashRouter, Routes, Route,createBrowserRouter,useRoutes } from "react-router-dom";
// 添加如下
import store from './store'
import { Provider } from 'react-redux'

// 关闭严格模式
ReactDOM.createRoot(document.getElementById('root')!).render(
  // <React.StrictMode>
    // <LayoutCommpont />
  // </React.StrictMode>,
  <Provider store={store}>
    <BrowserRouter>
      <App></App>
    </BrowserRouter>
  </Provider>,
  // <BrowserRouter>
  //   <App></App>
  // </BrowserRouter>
  
)
